x86/VPMU: clean up Intel VPMU code
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Fri, 23 Jan 2015 16:52:23 +0000 (17:52 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 23 Jan 2015 16:52:23 +0000 (17:52 +0100)
commit2c85cae312943263a00a69b038acc7454e2804b6
tree1543a56e6963852deac6c660702881a00e7ffa9f
parentc71b23096966fd60726ed4f4e7ae1469f10bbe64
x86/VPMU: clean up Intel VPMU code

Remove struct pmumsr and core2_pmu_enable. Replace static MSR structures with
fields in core2_vpmu_context.

Call core2_get_pmc_count() once, during initialization.

Properly clean up when core2_vpmu_alloc_resource() fails.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
Tested-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>
xen/arch/x86/hvm/vmx/vpmu_core2.c
xen/include/asm-x86/hvm/vmx/vpmu_core2.h